<template>
  <dv-border-box-6 class="tech-chart-card">
    <div class="tech-card-header">
      <span class="tech-title">简历完成情况</span>
    </div>
    <div class="chart-container">
      <dv-scroll-ranking-board v-if="!loading" :config="resumeRankingConfig" class="dv-chart" />
      <dv-loading v-else>Loading...</dv-loading>
    </div>
  </dv-border-box-6>
</template>

<script>
export default {
  name: 'ResumeRankingChart',
  props: {
    loading: {
      type: Boolean,
      default: false
    },
    resumeRankingConfig: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped>
.tech-chart-card {
  height: 350px;
  background-color: rgba(0, 20, 40, 0.7);
  padding: 15px;
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 10px;
}

.tech-title {
  font-size: 18px;
  font-weight: 600;
  color: #00c0ff;
  text-shadow: 0 0 10px rgba(0, 192, 255, 0.7);
}

.chart-container {
  height: 280px;
  position: relative;
  padding: 10px;
}

.dv-chart {
  width: 100%;
  height: 100%;
}
</style>